package cn.com.jinhao.provider.user.mapper;


import cn.com.jinhao.hotline.commons.base.BaseMapper;
import cn.com.jinhao.provider.user.entity.Dept;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * HotLine
 * <p>Description: 部门</p>
 *
 * @author ShaneMew
 * @version 1.0
 * @date 2019/10/21
 * @since 2019-10-21
 */
@Repository
public interface DeptMapper extends BaseMapper<Dept> {
    /**
     * 通过部门编码查询部门名
     *
     * @param code 部门编码
     * @return String  部门名
     */
    @Select("SELECT dept FROM ST$DEPT WHERE code=#{code}")
    String getNameByCode(@Param("code") String code);
}
